home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1
/
Ian and Stuart's One (Australia).iso
/
Awards
/
Apple Cool Tool Awards 94
/
MacHTTP 1.3.1b16
/
MacHTTP.config
< prev
next >
Wrap
Text File
|
1994-10-22
|
6KB
|
142 lines
#MacHTTP Configuration file, v. 1.3.1b16
VERSION 1.3.1b16
#The format of this file is free form, with a few exceptions. Lines not
#starting with a keyword are ignored. There can only be 20 total suffix
#definitions (i.e., TEXT, BINARY, and SCRIPT commands). Also, security
#entries (ALLOW, DENY) are evaluated in the order specified in the config file.
#Note, all entries are converted to upper case by MacHTTP, so the config file isn't
#case sensitive.
#The following line defines the default file type if a suffix match isn't found.
#The syntax is: DEFAULT <default transfer type> <default MIME type>
DEFAULT TEXT text/html
################ IMPORTANT NEW INFO!!!! ####################
#
# Security realms - see the Read Me for more details
#REALM work Co-Workers
#REALM cust Customers
#
# MacHTTP can be configured to eliminate DNS accesses. For best performance,
# uncomment the following line. MacHTTP will log IP addresses rather than
# host names, but the software will perform much faster when used with
# slow domain name servers.
#NO_DNS
#These lines define the suffix file type mappings.
#The syntax is <type> <suffix> <mac file type> <mac creator> <mime type>
#
#Unspecified parameters should be replaced with "*". MacHTTP tries to match
#a file suffix first. Failing that, it tries to match Mac file type info, and if it
#can, Mac creator info as well. Matching either suffix or type/creator determines
#the transfer type and MIME type. If the client supports HTTP/1.0, the appropriate
#MIME header will be constructed and returned, based on the info below.
#Scripts are responsible for generating their own HTTP/1.0 headers!!!
TEXT .HTML TEXT * text/html
BINARY .GIF GIFf * image/gif
SCRIPT .SCRIPT TEXT * text/html
SCRIPT * TEXT ToyS text/html
APPL .EXE APPL * text/html
CGI .CGI APPL * text/html
ACGI .ACGI APPL * text/html
BINARY .PICT PICT * image/pict
TEXT .TEXT TEXT * text/plain
TEXT .TXT TEXT * text/plain
TEXT .HQX TEXT * application/mac-binhex40
BINARY .JPG JPEG * image/jpeg
BINARY .JPEG JPEG * image/jpeg
BINARY .AU * * audio/basic
BINARY .AIFF * * audio/x-aiff
BINARY .XBM * * image/x-xbm
BINARY .MOV MOOV * video/quicktime
BINARY .MPEG MPEG * video/mpeg
BINARY .WORD WDBN MSWD application/msword
BINARY .XL XLS3 * application/excel
BINARY .SIT SITD * application/x-stuffit
#The following lines specify where to find HTML files for error messages, the
#default home (or index) page, the name of the log file, and the message
#returned for security violations.
#
#NOTE!!! INDEX must be a simple file name, not a path like the other files.
INDEX Default.html
ERROR :Error.html
LOG :MacHTTP.log
NOACCESS :NoAccess.html
#Sets the timeout for inactive connections to 60 seconds
TIMEOUT 60
#Sets the max number of simultaneous users to 8.
#The minimum value is 3, the maximum is 1000 (!!!)
#For larger values, you should monitor memory usage and increase
#MacHTTP's memory allocation in the Finder accordingly.
MAXUSERS 8
#Sets the number of "listens" MacHTTP performs simultaneously. For
#busy servers with clients that report "Unable to connect" errors,
#this number should be increased. If the "Listening" statistic in
#the status window ever drops to 1, some clients may miss connecting.
#Default is 5, minimum is 3, maximum is 50. Hint: 3 is a good number.
MAXLISTENS 3
#A single copy of MacHTTP only listens on a single port for multiple
#connections. The HTTP standard port is 80. Users may define any port
#they'd like to listen on, but internet standards say that ports
#numbered 1024 and below are reserved for "Well known services" that
#are pre-defined. That means if you change MacHTTP's port from 80,
#you should pick a number greater than 1024 to avoid conflicting with
#things like telnet, gopher, ftp, nfs, pop, etc. that all have ports
#assigned below 1024.
PORT 80
#Configure access permissions. There is an implied "DENY *" that is evaluated
#prior to any user security specifications if present. Otherwise, the default is
#"ALLOW *". End complete host IP addresses with a "." for an exact match. Otherwise
#a statement like "ALLOW 129.106.3" would match hosts 129.106.30.*, 129.106.31.*,
#129.106.32.*, etc.
#
#As of version 1.3.1b9 you may also specify domain names for ALLOW and DENY
#statements. The domain names are matched from right to left, as opposed to the
#left to right matches done for IP address ALLOW and DENY statements. Also, the
#domain names you specify are case-sensitive and MUST end with a period (.).
#For example:
# ALLOW tmc.edu.
# DENY oac.hsc.uth.tmc.edu.
#would deny all hosts (implicit DENY *), allow any tmc.edu node, and deny the
#specific host, oac.hsc.uth.tmc.edu.
#NOTE!!! "ALLOW *" and "DENY *" are not valid syntax!
#ALLOW 123.45.6.
#DENY 123.45.6.7.
#If the following line is uncommented, MacHTTP will hide the status window when
# it is in the background.
#HIDEWINDOW
###################################################
###################################################
# Additions for multi-threaded transfers
# This is the number of ticks that MacHTTP will "steal" from other processes while
# sending data to clients. This equates directly to how much time MacHTTP will spend
# processing connections. Your Mac will effectively be dedicated to MacHTTP for this
# period of time. The argument is in "ticks", which are 60ths of a second. The default
# is .5 seconds. (30 ticks) Values can range between 0 and 120.
PIG_DELAY 30
# This is the chunk size that MacHTTP will divide file transfers into. The larger the
# chunk, the longer it will take to transmit over slow connections. The smaller it is, the
# more times MacHTTP will be able to swap between servicing multiple connections and
# freeing the Mac to work on other processes. The argument represents the max number of
# bytes to be sent in a single MacTCP write to the client. The min is 256, the max is 10240.
DUMP_BUF_SIZE 8192